1 /** 2 Copyright: Copyright (c) 2018, Joakim Brännström. All rights reserved. 3 License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) 4 Author: Joakim Brännström (joakim.brannstrom@gmx.com) 5 */ 6 module test_toml_config; 7 8 import config; 9 10 @("shall load all sections from the TOML config and successfully execute") 11 unittest { 12 auto ta = TestArea(__FILE__, __LINE__); 13 mkdir(buildPath(ta, "db")); 14 copy(buildPath(testData, "conf", "all_sections.toml"), buildPath(ta, ".code_checker.toml")); 15 copy(buildPath(testData, "conf", "compile_commands.json"), buildPath(ta, 16 "db", "compile_commands.json")); 17 copy(buildPath(testData, "conf", "empty.cpp"), buildPath(ta, "empty.cpp")); 18 19 auto res = run([codeCherckerBin, "--vverbose"], ta); 20 21 res.print; 22 res.status.shouldEqual(0); 23 }